package inits

import (
	"fmt"
	"go.uber.org/zap"
)

func InitZap() {
	config := zap.NewDevelopmentConfig()

	config.OutputPaths = []string{"./zap.log"}
	logger, err := zap.NewProduction()
	if err != nil {
		panic(err)
	}

	defer logger.Sync()

	config.Build()
	fmt.Println("zap链接成功")
}
